package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcActEco generated by hbm2java
 */
@Entity
@Table(name = "RC_ACT_ECO", schema = "RUC")
@SequenceGenerator(name = "SEQ_RC_ACT_ECO", sequenceName = "SEQ_RC_ACT_ECO")
public class RcActEco implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -5771227671007193540L;
    private Long ircActEco;
    private TbActEco tbActEco;
    private RcRuc rcRuc;
    private Date fiactEco;
    private Date ffactEco;
    private Long orden;
    private String cusuario;
    private String nfolio;

    public RcActEco() {
    }

    public RcActEco(Long ircActEco, TbActEco tbActEco, RcRuc rcRuc, Long orden) {
        this.ircActEco = ircActEco;
        this.tbActEco = tbActEco;
        this.rcRuc = rcRuc;
        this.orden = orden;
    }

    public RcActEco(Long ircActEco, TbActEco tbActEco, RcRuc rcRuc,
            Date fiactEco, Date ffactEco, Long orden, String cusuario,
            String nfolio) {
        this.ircActEco = ircActEco;
        this.tbActEco = tbActEco;
        this.rcRuc = rcRuc;
        this.fiactEco = fiactEco;
        this.ffactEco = ffactEco;
        this.orden = orden;
        this.cusuario = cusuario;
        this.nfolio = nfolio;
    }

    @Id
    @Column(name = "I_RC_ACT_ECO", unique = true, nullable = false, precision = 22, scale = 0)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_RC_ACT_ECO")
    public Long getIrcActEco() {
        return this.ircActEco;
    }

    public void setIrcActEco(Long ircActEco) {
        this.ircActEco = ircActEco;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "C_ACT_ECO", nullable = false)
    public TbActEco getTbActEco() {
        return this.tbActEco;
    }

    public void setTbActEco(TbActEco tbActEco) {
        this.tbActEco = tbActEco;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "NIT", nullable = false)
    public RcRuc getRcRuc() {
        return this.rcRuc;
    }

    public void setRcRuc(RcRuc rcRuc) {
        this.rcRuc = rcRuc;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "FI_ACT_ECO", updatable = false)
    public Date getFiactEco() {
        return this.fiactEco;
    }

    public void setFiactEco(Date fiactEco) {
        this.fiactEco = fiactEco;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "FF_ACT_ECO", length = 7)
    public Date getFfactEco() {
        return this.ffactEco;
    }

    public void setFfactEco(Date ffactEco) {
        this.ffactEco = ffactEco;
    }

    @Column(name = "ORDEN", nullable = false, precision = 22, scale = 0)
    public Long getOrden() {
        return this.orden;
    }

    public void setOrden(Long orden) {
        this.orden = orden;
    }

    @Column(name = "C_USUARIO", length = 30)
    public String getCusuario() {
        return this.cusuario;
    }

    public void setCusuario(String cusuario) {
        this.cusuario = cusuario;
    }

    @Column(name = "N_FOLIO", length = 12)
    public String getNfolio() {
        return this.nfolio;
    }

    public void setNfolio(String nfolio) {
        this.nfolio = nfolio;
    }
}
